package cn.fboost.mtos.dto.request;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

/**
 * 分类商品列表请求实体
 */
@Data
public class ProductListByCategoryRequest {
    @NotNull(message = "分类ID不能为空")
    @Positive(message = "分类ID有误")
    private Integer categoryId;

    @Valid
    @NotNull(message = "分页参数不能为空")
    private PageRequest pagination;
}
